package cn.jiyun.pojo.function;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@ToString
@TableName("backstage_car")
public class Car {
    private Integer id;
    private Integer vehicleType;
    private String licencePlate;
    private String vehicleModel;
    private String energyType;
    private String brand;
    private String vender;
    private String vehicleAge;
    private String vin;
    private Integer deviceNumber;
    private Integer did;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime registrationTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime submissionTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime approvalTime;
    private Integer carStatus;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime carValidity;
    private String verifier;


    private String userName;
    private String userPhoto;
    private String userPhone;
    private Integer userType;
    private Integer userSex;
    private LocalDate userBirthday;
    private Integer userAge;
    private String userEmail;
    private LocalDate drivingLicense;
    private String registeredCity;
    private String administrativeRegion;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime dregistrationTime;


    @TableField(exist = false)
    private String name;
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime date1;
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime date2;
    @TableField(exist = false)
    private Integer verificationStatus;
}
